import request from "@/utils/request";

export const loginApi = (data) => {
  return request({
    url: "/login",
    method: "post",
    data,
  });
};

export const jwt = (params) => {
  return request({
    url: "/jwt",
    method: "get",
    params,
  });
};

export const getBaseInfo = () => {
  return request({
    url: "/",
    method: "get",
  });
};

export const deleteUserAPI = (params) => {
  return request({
    url: "/delete",
    method: "delete",
    params,
  });
};

export const getAllUserAPI = () => {
  return request({
    url: "/getAllUser",
    method: "get",
  });
};
